/*
Naijanimi Free SMS Application for Nokia mobiles.

"Naijanimi Free SMS Application" is protected by the copyright law
(c) 2011 Enrico Miglino / Tech Consulting (enrico.miglino@ovi.com)
Distributed under the LGPL 3.0 license.

This file is part of "Naijanimi Free SMS Application".

    "Naijanimi Free SMS Application" is free software: you can redistribute it
    and/or modify it under the terms of the Lesser GNU General Public License
    as published by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    "Naijanimi Free SMS Application" is distributed in the hope that it
    will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    Lesser GNU General Public License for more details.

    You should have received a copy of the Lesser GNU General Public License
    along with "Naijanimi Free SMS Application".
    If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0

Item {
    id: mainForms

    property alias register_opacity: registeruser.opacity
    property alias login_opacity: loginuser.opacity

    signal exitformsClicked
    signal loginformsClicked

    // Form to register new user
    RegisterForm {
        id: registeruser

        width:  parent.width
        height: parent.height
        onExitClicked: { mainForms.exitformsClicked() }
    }

    // Form to login an existing user.
    // This is the entry point (if login passes) to the program fucntions
    LoginForm {
        id: loginuser

        width:  parent.width
        height: parent.height
        onExitClicked: { mainForms.exitformsClicked() }
        onLoginClicked: { mainForms.loginformsClicked() }
    }
}
